<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<MVCWeb.Models.DocCategory>>" %>

<%@ Register Src="~/Views/Menu/MainMenu.ascx" TagName="MainMenu" TagPrefix="mmuc" %>
<%@ Register Src="~/Views/Shared/LogOnUserControl.ascx" TagName="LogOnUserControl" TagPrefix="louc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>Choose a category</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <louc:LogOnUserControl ID="LogOnUserControl1" runat="server" />
     <!-- BEGIN: MainMenu -->    
    <mmuc:MainMenu ID="MainMenu1" runat="server" />
    <!-- END: MainMenu -->
    <h2>
        Community:
        <%= ViewData["CommunityName"] == null ? string.Empty: ViewData["CommunityName"].ToString() %></h2>
    <hr />
    <% foreach (var item in Model)
       { %>
    <p>
        <b>
            <%= Html.ActionLink(Html.Encode(item.Category), "List", new { id = ViewData["CommunityId"], categoryId = item.DocCategoryId })%></b>
    </p>
    <% } %>
    <hr />
    <%= Html.ActionLink("Back to Community List", "AdminList") %>
</asp:Content>
